package cn.iocoder.yudao.module.carbon.api.gwp;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.carbon.api.gwp.dto.GwpListReqDTO;
import cn.iocoder.yudao.module.carbon.api.gwp.dto.GwpRespDTO;
import cn.iocoder.yudao.module.carbon.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Tag(name =  "RPC 服务 - 全球变暖潜能值")
public interface GwpApi {

    String PREFIX = ApiConstants.PREFIX + "/gwp";

    @PostMapping(PREFIX + "/list")
    @Operation(summary = "获取全球变暖潜能值（GWP）列表")
    CommonResult<List<GwpRespDTO>> getGwpList(@Valid @RequestBody GwpListReqDTO reqDTO);

}
